import { defineStore } from "pinia";
import { store } from "@/store/utils";
export const useK8sClusterRole = defineStore("k8sClusterRole", {
  state: () => ({
    clusterRoles: [] as any[],
    isAdmin: false
  }),
  actions: {
    async getRoles(): Promise<any[]> {
      // TODO: get roles from k8s
      return [];
    }
  }
});

export const useClusterRole = () => {
  return useK8sClusterRole(store);
};
